import { UsersModule } from '@/modules/users/users.module';
import { forwardRef, Module } from '@nestjs/common';
import { PassportModule } from '@nestjs/passport';
// import { AuthService } from './auth.service';
import { AuthStrategy } from './auth.strategy';

@Module({
  imports: [
    PassportModule.register({ defaultStrategy: 'jwt' }),
    forwardRef(() => UsersModule), // 模块间循环依赖处理
  ],
  providers: [AuthStrategy], // AuthStrategy],
  exports: [PassportModule, AuthStrategy],
})
export class AuthModule {}
